Skip to content

Conversation

annagrin
Copy link
Collaborator

@annagrin annagrin commented Nov 1, 2024

Description

Fix passing lists of boolean values to kernels in python.

Closes: #2262
Closes: #2330

@annagrin annagrin requested a review from schweitzpgi November 1, 2024 22:29
@@ -393,11 +393,11 @@ inline void packArgs(OpaqueArguments &argData, py::args args,
.Case([&](IntegerType type) {
// Handle vec<bool> and vec<int>
if (type.getIntOrFloatBitWidth() == 1) {
genericVecAllocator.template operator()<bool>(
genericVecAllocator.template operator()<char>(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required if we merge #2338 ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to this file can be dropped AFAICT.

It would be great to add the extended tests though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected behavior with list[bool] for argument of kernel Unexpected behavior when kernel takes list of booleans
2 participants